package com.atguigu.tingshu.search.service;

import com.atguigu.tingshu.model.search.AlbumInfoIndex;
import com.atguigu.tingshu.query.search.AlbumIndexQuery;
import com.atguigu.tingshu.vo.search.AlbumSearchResponseVo;

import java.util.List;
import java.util.Map;

public interface SearchService {
    /**
     * 上架专辑
     * @param albumId
     */

    void upperAlbum(Long albumId);
    /**
     * 下架专辑
     * @param albumId
     */

    void lowerAlbum(Long albumId);

    /**
     *  搜索
     * @param albumIndexQuery
     * @return
     */
    AlbumSearchResponseVo search(AlbumIndexQuery albumIndexQuery);

    /**
     *   搜索提示
     * @param keyWord
     * @return
     */
    List<String> completeSuggest(String keyWord);

    /**
     *   根据一级分类ID获取渠道信息
     * @param category1Id
     * @return
     */

    List<Map<String, Object>> getChannel(Long category1Id);

    void updateLatelyAlbumRanking();

    List<AlbumInfoIndex> findRankingList(Long category1Id, String ranking);
}
